home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / objcissu.lha / bugs < prev    next >
Internet Message Format  |  1993-03-01  |  6KB

  1. Date: Wed, 11 Nov 1992 14:51:38 -0500
  2. From: hassey@dg-rtp.dg.com (John Hassey)
  3. Message-Id: <9211111951.AA22923@matrix>
  4. To: gnu-objc@prep.ai.mit.edu
  5. Subject: problem with initialize_class() in core.c
  6.  
  7.  
  8.   Running on m88k-dg-dgux
  9.  
  10.   There is no initialize method for class Object, so
  11.  
  12.     SEL           sel = sel_getUid ("initialize")
  13.  
  14.   results in sel having the value 0.
  15.  
  16.   Later,
  17.     method
  18.       = searchForMethodInList (class->class_pointer->methods, sel_getName (sel));
  19.  
  20.   gets an assert failure in record_get() since the selector is 0.
  21.  
  22.   The fix seems to be to add a check for (sel != 0).
  23.  
  24.   john.
  25.  
  26.  
  27.  
  28. Date: Tue, 5 Jan 1993 13:43:12 -0500
  29. From: hassey@dg-rtp.dg.com (John Hassey)
  30. To: gnu-objc@prep.ai.mit.edu
  31. Subject: Symbol __realloc
  32.  
  33.    On DG/ux the symbol _realloc in core.c is conflicting with 
  34.    a _realloc in libc.a.  Any other system have this problem ?
  35.  
  36.    I think we should change _realloc (and friends: _alloc, _dealloc ...)
  37.    to something like: _objc_realloc.  To have a symbol with the same name
  38.    as a libc routine, (or very close) is just asking for trouble.
  39.  
  40.    comments ?
  41.    john.
  42.  
  43.  
  44. John Hassey        hassey@dg-rtp.dg.com (NeXT mail ok)
  45. Data General Corp.    Research Triangle Park    NC, 27709
  46.  
  47.  
  48. Date: Fri, 29 Jan 93 13:41:42 -0500
  49. From: rms@gnu.ai.mit.edu (Richard Stallman)
  50. To: snaroff@next.com, gsk@marble.com
  51. Subject: [coei@prodhp.us.oracle.com: symbol __objc_class_name_Object undefined]
  52.  
  53. Can one of you please see if the latest version has this bug,
  54. and if so, get it fixed?
  55.  
  56. To: help-gcc@prep.ai.mit.edu
  57. Date: Thu, 28 Jan 1993 18:00:49 GMT
  58. Organization: Oracle Corp., Redwood Shores CA
  59. From: coei@prodhp.us.oracle.com (Chris Oei)
  60. Sender: help-gcc-request@prep.ai.mit.edu
  61. Subject: symbol __objc_class_name_Object undefined
  62.  
  63.  
  64. When I try to use gcc-2.3.3 on AIX 3.2, I got the following:
  65.  
  66.  
  67. amnesia> gcc -c m.m
  68. Assembler:
  69. /tmp/ccUOMDM2.s: line 175: 1252-023 The symbol __objc_class_name_Object is not d
  70. efined.
  71. /tmp/ccUOMDM2.s: line 175: 1252-040 The specified expression is not valid.
  72.         Make sure that all symbols are defined.
  73.         Check the rules on symbols used in an arithmetic expression
  74.         concerning relocation.
  75.  
  76. The file in question is
  77.  
  78. #include <stdio.h>
  79. #include <Object.h>
  80.  
  81. @interface A : Object {
  82.         int x;
  83. }
  84.  
  85. - show;
  86. @end
  87.  
  88. @implementation A : Object {
  89.         int x;
  90. }
  91.  
  92. -show
  93. {
  94.         printf("%d\n",x);
  95. }
  96.  
  97. @end
  98.  
  99. I also got the same error using gcc-2.3.1 on SunOS 4.1
  100.  
  101. Anyone have any ideas what's wrong?
  102.  
  103. If anyone has gotten the objective-c part of gcc to work properly on either
  104. machine, I'd be interested in hearing about it.  At least I'd know there
  105. exists some way of getting it to work.
  106.  
  107. Help!
  108.  
  109. (please?)
  110.  
  111. Thanks,
  112. Chris
  113. coei@oracle.com
  114.  
  115.  
  116. Return-Path: <lele@itnsg1.cineca.it>
  117. From: lele@itnsg1.cineca.it (Lele Gaifax)
  118. Subject: Using GNU runtime on a NeXT
  119. To: gnu-objc@prep.ai.mit.edu
  120. Date: Mon, 22 Feb 1993 15:12:54 +0100 (MET)
  121. X-Mailer: ELM [version 2.4 PL3]
  122. Mime-Version: 1.0
  123. Content-Type: text/plain; charset=US-ASCII
  124. Content-Length: 1662      
  125.  
  126. Hi all,
  127. since I just sent my "subscribe msg" for this list, please CC any answer to
  128. lele@itnsg1.cineca.it too for a while...
  129.  
  130. So,
  131. I started playing with GNU objc runtime, using gcc 2.3.3, on my NeXT.
  132.  
  133. Configured with "configure next" gcc does not produce anything usable on the
  134. NeXT, since next.h state a #define NEXT_OBJC_RUNTIME and core.c does not check
  135. for it: the program simply die with a assertion failed on "initialized", 
  136. because "objc_execClass" is not called at all.
  137.  
  138. I tried to modify the sources to get a gcc producing GNU standard objc runtime,
  139. but with all combination I get an error from ld about section
  140. (__OBJC, __message_refs): it seems to me that the NeXT ld tries to "simplify"
  141. the object file merging all similar messages (same name) into one unique 
  142. symbol:
  143. literal pointer section (__OBJC,__message_refs) does not have is exactly one relocation entry for each pointer
  144. (BTW, what exactly this message mean? Is it a typo or my english knowledge is
  145. fooling me?)
  146.  
  147. This is specific to the NeXT runtime: the native gcc produce a table
  148. in that section with a label for each message. The GNU runtime instead wants
  149. an array of simbols in that section.
  150.  
  151. Is it possible to get GNU Objc working with its own runtime on a NeXT too?
  152. Ie, is it possible to tell the linker to disable or skip this step?
  153.  
  154. I'd like to use the gnu runtime. Since gcc doesn't implement ObjC as NeXT does,
  155. I cannot use it with the appkit (it lacks @protocol, @class, ...), and so
  156. without its runtime the compiler is of no use. 
  157.  
  158. Thanx a lot,
  159. lele.
  160.  
  161. -- 
  162. Lele Gaifax - lele@itnsg1.cineca.it
  163. ...calling Emacs convenient, of course, is like calling oxygen useful
  164.                     Rens Troost
  165.  
  166. Date: Mon, 1 Mar 93 11:01:34 -0500
  167. From: khera@cs.duke.edu (Vivek Khera)
  168. To: gsk@world.std.com (Geoffrey S Knauth)
  169. In-Reply-To: gsk@world.std.com's message of 28 Feb 93 23:35:31 GMT
  170. Newsgroups: comp.lang.objective-c
  171. Subject: Re: gnu objc robustness
  172. References: <C36Mv7.42t@world.std.com>
  173. Distribution: 
  174.  
  175. In article <C36Mv7.42t@world.std.com> gsk@world.std.com (Geoffrey S Knauth) writes:
  176.  
  177.    After more testing, soon you will see a new runtime.
  178.  
  179.  
  180. that sounds fantastic.  but... when i compiled and installed gcc 2.3.3
  181. recently, i had it do the build for Objective C so i could play with
  182. it some.  but after following the directions, i ended up without the
  183. Object.h header file installed (even though the libobjc.a got
  184. installed).  do i have to copy the objc/*.h files into the installed
  185. location manually or did i miss a step somewhere?
  186.  
  187.